import React, { useState } from 'react'
import { Button } from 'antd';
import './detail.less'
interface IProps {
    xcon: any
}
export default function ClassDetail(props) {
    let { close, xcon } = props
    return (
        <div className='class_detailBox'>
            <div className="class_detail clear">
                {
                    xcon.map((item, index) => {
                        if (item.isFlag) {
                            return (
                                <div key={index}>
                                    <p>{item.det}</p>
                                </div>
                            )
                        } else {
                            return ''
                        }
                    })
                }

            </div>
            <div className='class_sureBtn clear'>
                <Button type="primary" onClick={close}>确定</Button>
            </div>
        </div>
    )
}
